// #ifdef H5
let VUE_APP_WS_URL = `ws://${location.hostname}`
// #endif

let openPlantGrass = '-openPlantGrass-'

// 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.31.108:8324' //测试
let httpApi = 'https://shopdev.miyingbl.com/api/' //生产

// 聊天接口修改此字符 小程序聊天要求wss 例如：wss://mer.crmeb.net
// let wsApi = 'ws://192.168.3.20:8324'
let wsApi = 'wss://shop.miyingbl.com'
import {ENV} from "@/utils/http"

const BASE_LIST={
     shop:{
       dev: '//test.shop.miyingbl.com',
       pro: '//shop.miyingbl.com',
       hd: '//shop.hd.miyingbl.com',
       test: '//shoptest.miyingbl.com',
     },
     service: {
       // 服务
       dev: '//test.service.miyingbl.com',
       pro: '//service.miyingbl.com',
       hd: '//service.hd.miyingbl.com',
       test: '//servicetest.miyingbl.com',
     },
     life: {
       // 生活
       dev: '//test.lifemy.miyingbl.com',
       pro: '//lifemy.miyingbl.com',
       hd: '//lifemy.hd.miyingbl.com',
       test: '//lifemytest.miyingbl.com',
   },
}
// 商城
export function HTTP_REQUEST_URL() {
  return `https:${BASE_LIST.shop[ENV]}`
}
export const HTTP_WASS_URL = `wss:${BASE_LIST.shop[ENV]}?type=user`
// 服务
export function SERVICE_REQUEST_URL() {
  return `https:${BASE_LIST.service[ENV]}`
}
export const SERVICE_WSS_URL = `wss:${BASE_LIST.service[ENV]}?type=user`
// 生活
export const LIFE_REQUEST_URL = () => {
  return `https:${BASE_LIST.life[ENV]}`
}
export const LIFE_WSS_URL = () => {
  return `wss:${BASE_LIST.life[ENV]}?type=user`
}
//社交广场
export const SOCIAL_WSS_URL = () => {
  return `wss:${BASE_LIST.life[ENV]}`
}
export function TOKENNAME() {
  return 'X-Token'
}
